package com.doge;

import java.util.ArrayList;

import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.TextureRegion;

public class Player extends Character {
	
	TextureRegion t;
	Tile position;
	//int x, y;
	public int statPoint = 0;
	boolean moving;
	
	int maxHealth = 100;
	int magic = 1;
	int str = 1;
	
	ArrayList<BattleAction> unlearnedActions = new ArrayList<BattleAction>();
	
	public Player(Main parent, TextureRegion t, Tile position) {
		super(t, position);	
		
		name = "Player";
		moving = false;
		
		this.t = parent.textures.player;
		battleActions.add(new BattleAction("Suicide",-100,1,0));
		battleActions.add(new BattleAction("Do Nothing",0,0,0));
		battleActions.get(0).isLockable = false;
		battleActions.get(1).isLockable = false;
		battleActions.add(new BattleAction("Hit with Face", 12, 0, 30,0));
		battleActions.add(new BattleAction("Heal Face", 19, 1, 25,1));
		
		unlearnedActions.add(new BattleAction("Be Prepared", 100,1,100));
		unlearnedActions.add(new BattleAction("Summon Doge", 100,0,100));
	}
	
	
	public void addStat(int statAmt, int stat)
	{
		if(stat == 0) str += statAmt; 
		else if(stat == 1) magic += statAmt;
		//have actions reference back to the player in the future
		for(BattleAction a : battleActions)
			if(a.boost == stat) a.boost(statAmt);
	}
}
